package org.vdab.projects.tasks.client;

import java.util.List;

import org.vdab.projects.tasks.shared.entities.impl.Task;
import org.vdab.projects.tasks.shared.entities.impl.TaskBook;
import org.vdab.projects.tasks.shared.entities.impl.TaskList;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("tasks")
public interface TasksService extends RemoteService {
	List<TaskBook> getTaskBook() throws Exception;
	TaskList getTaskListByKey(String key) throws Exception;
	
	void saveTaskBook(TaskBook tb) throws Exception;
	void saveTaskList(TaskList tl) throws Exception;
	void saveTask(Task task) throws Exception;
	
}
